#!/usr/bin/env python3
# -*- encoding: utf-8 -*-

'''
@file    :   app.py
@date    :   2020-08-29 21:33:03
@author  :   huenrong
'''

import sys
from PyQt5 import QtWidgets
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
from ctypes import windll
from pyqt_student_name_analysis import pyqt_student_name_analysis


if __name__ == '__main__':
    # 高清屏幕自适应
    QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)

    app = QtWidgets.QApplication(sys.argv)

    # 设置窗口图标
    icon = QIcon("./myico.ico")
    app.setWindowIcon(icon)

    # 设置任务栏图标
    windll.shell32.SetCurrentProcessExplicitAppUserModelID("myappid")

    widget = pyqt_student_name_analysis()
    widget.show()
    sys.exit(app.exec_())
